<template>
	<div >
		<!-- 由于uniapp的小程序不支持vue component动态组件，所以我们使用v-if实现 -->
		<WdNotice v-if="pageComponent.component == 'WdNotice'" :datas="pageComponent" />
		<WdLayout v-else-if="pageComponent.component == 'WdLayout'" :datas="pageComponent" />
		<WdCaptiontext v-else-if="pageComponent.component == 'WdCaptiontext'" :datas="pageComponent" />
		<WdGrid v-else-if="pageComponent.component == 'WdGrid'" :datas="pageComponent" />
		<WdCellGroup v-else-if="pageComponent.component == 'WdCellGroup'" :datas="pageComponent" />
		<WdPictureads v-else-if="pageComponent.component == 'WdPictureads'" :datas="pageComponent" />

	</div>
</template>

<script>
	import WdCellGroup from './WdCellGroup/index.vue'
	import WdPictureads from './WdPictureads/index.vue'
	export default {
		name: "widgets",
		components: {
			WdCellGroup,
			WdPictureads
		},
		props: {
			pageComponent: Object,
		},
		data() {
			return {};
		}
	}
</script>

<style>

</style>
